<?php

namespace Juheip\IpService\contract;

use Exception;
use Juheip\IpService\exception\JuheException;
use Juheip\IpService\PlatformRequest;
use Throwable;

abstract class AbstractPlatform implements PlatformInterface
{
    public $client;

    public function __construct()
    {
        $this->client = new PlatformRequest($this);
    }

    public function init(array $config): self
    {
        throw new JuheException('必须实现init函数', 400);
    }
}